Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some CA1854 NetAnalyzers suggestions #71

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Aug 14, 2024

Use Dictionary.TryGetValue rather than ContainsKey followed by an element access.

Refs
image

and https://learn.microsoft.com/en-gb/dotnet/fundamentals/code-analysis/quality-rules/ca1854

@danipen danipen merged commit 3c5fb57 into danipen:master Aug 25, 2024
5 checks passed
@Numpsy Numpsy deleted the TryGetValue branch August 26, 2024 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants